<script setup>
    import { ref,onMounted } from 'vue';
    const count = ref(0);
    //声明函数
    function increase(){
        count.value++;
    }
</script>
<template>
    <button @click="increase">count:{{ count }}</button>
</template>